package com.system.service;

import com.system.dao.DepartmentSalaryMapper;
import com.system.pojo.DepartmentSalary;

import java.util.List;
import java.util.Map;

/**
 * Created by 陈文杰 on 2022/6/7 23:43
 */
public class DepartmentSalaryServiceImpl implements DepartmentSalaryService {

    private DepartmentSalaryMapper departmentSalaryMapper;

    public void setDepartmentSalaryMapper(DepartmentSalaryMapper departmentSalaryMapper) {
        this.departmentSalaryMapper = departmentSalaryMapper;
    }

    @Override
    public List<DepartmentSalary> queryDepartmentSalaryAll() {
        return departmentSalaryMapper.queryDepartmentSalaryAll();
    }

    @Override
    public DepartmentSalary queryDepartmentSalaryByDeptSalId(int deptSalId) {
        return departmentSalaryMapper.queryDepartmentSalaryByDeptSalId(deptSalId);
    }

    @Override
    public DepartmentSalary queryDepartmentSalaryByDeptName(String deptName) {
        return departmentSalaryMapper.queryDepartmentSalaryByDeptName(deptName);
    }

    @Override
    public int updateDepartmentSalaryByDeptSalId(Map<String, Object> map) {
        return departmentSalaryMapper.updateDepartmentSalaryByDeptSalId(map);
    }

    @Override
    public int updateDepartmentSalaryByDeptName(Map<String, Object> map) {
        return departmentSalaryMapper.updateDepartmentSalaryByDeptName(map);
    }

    @Override
    public int deleteDepartmentSalaryByDeptSalId(int deptSalId) {
        return departmentSalaryMapper.deleteDepartmentSalaryByDeptSalId(deptSalId);
    }

    @Override
    public int deleteDepartmentSalaryByDeptName(String deptName) {
        return departmentSalaryMapper.deleteDepartmentSalaryByDeptName(deptName);
    }

    @Override
    public int addDepartmentSalary(DepartmentSalary departmentSalary) {
        return departmentSalaryMapper.addDepartmentSalary(departmentSalary);
    }
}
